# Maintainer: fauxpark <fauxpark@gmail.com>

_realname=dfu-util
pkgbase=mingw-w64-${_realname}
pkgname=${MINGW_PACKAGE_PREFIX}-${_realname}
pkgver=0.10
pkgrel=3
pkgdesc='Device firmware upgrade utilities (mingw-w64)'
arch=('any')
license=('GPL2')
groups=("${MINGW_PACKAGE_PREFIX}-eda")
url='http://dfu-util.sourceforge.net/'
depends=("${MINGW_PACKAGE_PREFIX}-libusb"
         "${MINGW_PACKAGE_PREFIX}-libwinpthread-git")
source=("https://downloads.sourceforge.net/project/dfu-util/dfu-util-${pkgver}.tar.gz")
sha256sums=('a03dc58dfc79c056819c0544b2a5970537566460102b3d82cfb038c60e619b42')

build() {
    cd ${srcdir}/${_realname}-${pkgver}
    ./configure --prefix=${MINGW_PREFIX}
}

package() {
    cd ${srcdir}/${_realname}-${pkgver}
    make DESTDIR="$pkgdir" install
}
